﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Uber.Core.Model.Notification>" %>
You have a new 
<% if (Model.NType == 0)
       {%>answer on your question
    <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>"><%:Model.Post.Title %></a>   
       <%}
       if (Model.NType == 1 && Model.Post.ParentId.HasValue)
       {%>comment on your answer <a href="<%:Url.Action("Questionn","Forum",new{id = Model.Post.ParentId, nid = Model.Id}) %>"><%:Model.Post.Parent.Title %></a>   
       <%}
         if (Model.NType == 1 && !Model.Post.ParentId.HasValue)
       {%>comment on your question <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>"><%:Model.Post.Title %></a>   
       <%}
       if (Model.NType == 2 && !Model.Post.ParentId.HasValue)
       {%>comment reply on <a href="<%:Url.Action("Questionn","Forum",new{id = Model.PostId, nid = Model.Id}) %>"><%:Model.Post.Title %></a><%}
        if (Model.NType == 2 && Model.Post.ParentId.HasValue)
       {%>comment reply on <a href="<%:Url.Action("Questionn","Forum",new{id = Model.Post.ParentId, nid = Model.Id}) %>"><%:Model.Post.Parent.Title %></a><%}%>
    <br/>
you can change the email settings from the : <a href="<%=Url.Action("Index") %>">Notifications page</a>

or you can click here: <h1><a href="<%=Url.Action("Unsubscribe","Account",new{i = Model.AccountId, d="a"}) %>">Unsubscribe from all Awesome Emails</a></h1>